package com.forcetools.utils;
import java.util.HashMap;
import java.util.Map;
@SuppressWarnings("unchecked")
public class EnumUtils {
	private static Map<String,Class> masterEnum;
	static{
		masterEnum = new HashMap<String,Class>();
		masterEnum.put("deploymentStatus", com.sforce.soap.metadata.DeploymentStatus.class);
		masterEnum.put("sharingModel", com.sforce.soap.metadata.SharingModel.class);
		
	}
	
	public static Enum valueOf(String className,String enumVal){
		return Enum.valueOf(masterEnum.get(className), enumVal);
		
	}
}
